package cn.lyq.card.data.model

import cn.lyq.card.utils.IntToSmallChineseNumber
import com.google.gson.annotations.SerializedName
import java.io.Serializable

class CashBackStageInfo : Serializable, Comparable<CashBackStageInfo> {
    @SerializedName("id")
    var id = 0

    @SerializedName("level")
    var level = 0

    @SerializedName("title")
    var title: String? = null

    @SerializedName("number")
    var number = 0

    fun getStage(): String {
        return "第${IntToSmallChineseNumber.ToCH(level)}阶段"
    }

    override fun compareTo(other: CashBackStageInfo): Int {
        return level.compareTo(other.level)
    }
}